package com.diandiansong.app.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import diandiansong.library.utils.BaseEntity;

public class CommodityCateInfo extends BaseEntity {


    /**
     * message : null
     * data : [{"cate_id":"1","cate_name":"新鲜蔬菜","child":[{"cate_id":"10","cate_name":"叶菜类"},
     * {"cate_id":"16","cate_name":"特菜"},{"cate_id":"15","cate_name":"菌类"},{"cate_id":"14",
     * "cate_name":"豆类"},{"cate_id":"13","cate_name":"茄瓜类"},{"cate_id":"12","cate_name":"葱姜类"},
     * {"cate_id":"11","cate_name":"根茎类"}]},{"cate_id":"2","cate_name":"时令水果","child":[]},
     * {"cate_id":"3","cate_name":"肉禽类","child":[]},{"cate_id":"4","cate_name":"方便菜","child":[]},
     * {"cate_id":"5","cate_name":"水产冻货","child":[]},{"cate_id":"6","cate_name":"蛋品豆面",
     * "child":[]},{"cate_id":"7","cate_name":"米面粮油","child":[]},{"cate_id":"8",
     * "cate_name":"酒水饮料","child":[]},{"cate_id":"9","cate_name":"调料干货","child":[]}]
     */

    @SerializedName("data")
    private List<Data> data;

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data {
        /**
         * cate_id : 1
         * cate_name : 新鲜蔬菜
         * child : [{"cate_id":"10","cate_name":"叶菜类"},{"cate_id":"16","cate_name":"特菜"},
         * {"cate_id":"15","cate_name":"菌类"},{"cate_id":"14","cate_name":"豆类"},{"cate_id":"13",
         * "cate_name":"茄瓜类"},{"cate_id":"12","cate_name":"葱姜类"},{"cate_id":"11","cate_name":"根茎类"}]
         */

        @SerializedName("cate_id")
        private String cateId;
        @SerializedName("cate_name")
        private String cateName;
        @SerializedName("child")
        private ArrayList<Child> child;

        public String getCateId() {
            return cateId;
        }

        public void setCateId(String cateId) {
            this.cateId = cateId;
        }

        public String getCateName() {
            return cateName;
        }

        public void setCateName(String cateName) {
            this.cateName = cateName;
        }

        public ArrayList<Child> getChild() {
            return child;
        }

        public void setChild(ArrayList<Child> child) {
            this.child = child;
        }

        public static class Child implements Serializable {
            /**
             * cate_id : 10
             * cate_name : 叶菜类
             */

            @SerializedName("cate_id")
            private String cateId;
            @SerializedName("cate_name")
            private String cateName;

            public String getCateId() {
                return cateId;
            }

            public void setCateId(String cateId) {
                this.cateId = cateId;
            }

            public String getCateName() {
                return cateName;
            }

            public void setCateName(String cateName) {
                this.cateName = cateName;
            }
        }
    }
}
